package com.factory;

public class Main {

	public static void main(String[] args) {
		test2();
	}
	public static void test1() {
		Car car1 = CarFactory.createCar("奥迪");
		Car car2 = CarFactory.createCar("奔驰");
		car1.run();
		car2.run();
	}
	
	public static void test2() {
		Car c1 = AoDiChiFactory.createCar();
		Car c2 = BenChiFactory.createCar();
		c1.run();
		c2.run();
	}
}
